package com.yh.serviceimpl;
import com.yh.javabean.User;
import com.yh.mapper.UserMapper;
import com.yh.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service("userService")
class UserServiceImpl implements UserService {


    @Autowired
    UserMapper userMapper;

    @Override
    public List<User> findAll() {
        return userMapper.selectAll();
    }

    @Override
    public User findByUid(int uid) {
        return userMapper.selectByUid(uid);
    }
}